package cn.com.api.mapper;

import java.util.List;

import java.util.Map;

import cn.com.api.entity.ApiU_match_works;
import cn.com.api.mapper.base.U_match_worksMapperBase;

//DAO
public interface ApiU_match_worksMapper extends U_match_worksMapperBase {

	// 新增对象后返回记录ID
	public int U_match_worksInsertion(ApiU_match_works u_match_works);

	// 获取赛事做大的编号
	public Integer getMatchMaxSort(Integer match_id);

	// 根据赛事ID获取作品列表
	public List<ApiU_match_works> findU_match_worksByMatchId(Integer match_id);

	// 根据参赛作品ID获取当前排名
	public List<Map<String, Object>> getU_worksId_ranking(int match_id);

	// 获取用户投票的赛事列表
	public List<ApiU_match_works> findU_api_matchs_vote(Map<String, Object> params);

	public List<ApiU_match_works> findU_matchs_statistics_condition(Map<String, Object> params);

	public List<ApiU_match_works> findU_match_search_works(Map<String, Object> params);

	public List<ApiU_match_works> findU_match_already_works(Map<String, Object> params);

	// 批量更新获奖作品的获奖信息
	public void updateMatchworksprize(List<ApiU_match_works> updateworks);

	public ApiU_match_works findMatchworkInfo(Integer works_id);

	public List<Map<String, Object>> findU_match_statistics(Map<String, Object> params);

	public List<Map<String, Object>> findU_match_great(Map<String, Object> params);

}
